package com.jenkins.test.code;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;

/**
 * @program: jk_demo
 * @description:
 * @author: zhengjibin
 * @create: 2020-03-24 16:58
 * @Version 1.0
 **/
@RestController
@RequestMapping("/demo")
public class Demo1Controller {

    @RequestMapping(value = "/test",method = RequestMethod.GET)
    public String test1(){
        ZhengEntity entity = new ZhengEntity();
        entity.setId(1231);
        entity.setName("zhengjibin");
        return JSONObject.toJSONString(entity);
    }

    public static void main(String[] args) {
        BigDecimal b = BigDecimal.valueOf(-3);
        b = b.multiply(BigDecimal.valueOf(-1));
        System.out.println(b);
    }
}
